﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section styles{
    <style>

        .layoutrow {
            display: flex;
            justify-items: left;
            margin-bottom: 10px;
        }

        .layout-title {
            padding: 0px 8px;
            font-size: 14px;
            flex: 0 0 100px;
        }

        .layout-content {
            padding: 0px 8px;
            text-align: left;
        }
        .layoutrow img {
            width: auto;
            height: auto;
            max-width: 100%;
            max-height: 100%;
        }
        .uploader-list {
            display: flex;
            vertical-align: baseline;
            justify-content: left;
            align-items: flex-start;
            flex-wrap: wrap;
        }

        .uploader-list .file-iteme {
            display: flex;
            padding: 5px;
            flex-direction: column;
        }
    </style>

}
<div class="layui-card">
    <div class="layui-card-body">
       
     <div class="layui-tab-item layui-show">
                    <div class="layoutrow">
                        <div class="layout-title">标题</div><div class="layout-content">@Model.Title</div>
                    </div>
                    <hr />
                    <div class="layoutrow">
                        <div class="layout-title">类型</div><div class="layout-content"><button class="layui-btn  layui-btn-xs">@(Model.NoticType == 0 ?"通知":"公告")</button> </div>
                    </div>
                    <hr />
                    <div class="layoutrow">
                        <div class="layout-title">发布时间</div><div class="layout-content">@(Model.PublicTime==null?"":Model.PublicTime.ToString("yyyy-MM-dd"))
                        @if (Model.Status == 1)
                        {
                            <span class="layui-badge layui-bg-green">已发布</span>
                        }
                        else
                        {
                            <span class="layui-badge">草稿</span>

                        }
                        </div>
                    </div>
                    <hr />
                    <div class="layoutrow">
                       <div>@Html.Raw(Model.Content)</div>
                    </div>
                    <hr />
                </div>
                <div class="layui-tab-item">
                   
                </div>        
    </div>
</div>


@section scripts{

    <script type="text/javascript">
        layui.use(['lscom', 'form'], function () {
            var $ = layui.$;
            var lscom = layui.lscom;
            var form = layui.form;

        });
    </script>

}

